package com.association.service;

import com.association.model.PageDrawingBo;
import com.association.model.ResultResp;
import com.association.model.WebPageBo;
import com.association.model.entity.PageData;
import com.association.model.entity.WebPage;
import com.association.model.entity.WebPageType;
import com.association.model.entity.WebProject;
import com.association.model.vo.ComposingAndModules;
import com.association.model.vo.WebProjectVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author 18244
 */
public interface WebPageService {
    /**
     * 显示模板页面
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp pages(WebPage webPage);
    /**
     * 显示模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp getList(WebPage webPage);

    /**
     * 显示模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp getById(WebPage webPage);

    /**
     * 查询填写数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp getByDate(WebPage webPage);

    /**
     * 填写页面数据
     *
     * @param pageData
     * @return Result<XxxxDO>
     */
    ResultResp addData(PageData pageData);


    /**
     * 修改模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp edit(WebPage webPage);
    /**
     * 添加模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp add(WebPage webPage);

    /**
     * 删除模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp delete(WebPage webPage);

    /**
     * 显示模板数据
     *
     * @param webPage
     * @return Result<XxxxDO>
     */
    ResultResp composingShow(WebPage webPage);

    /**
     * 修改组件组件
     *
     * @param webPage rule id
     * @return List<WebModule>
     */
    ResultResp composingUpdate(WebPage webPage);

    /**
     * 修改组件组件
     *
     * @param pageDrawingBo rule id
     * @return List<WebModule>
     */
    ResultResp saveDrawingList(PageDrawingBo pageDrawingBo);
}
